package com.devshephard.controller;


import com.devshephard.domain.ResponseResult;
import com.devshephard.entity.User;
import com.devshephard.service.serviceImpl.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/user/login")
    public ResponseResult login(@RequestBody User user){

        //登录
         //loginService.login(user);

         return loginService.login(user);
    }



}
